x86/dmi_scan: only honor end-of-table for 64-bit tables
authorJean Delvare <jdelvare@suse.de>
Thu, 13 Aug 2015 12:48:40 +0000 (14:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Aug 2015 12:48:40 +0000 (14:48 +0200)
commitb001c41cf2da767127ed5ebb7d906d4a284afad7
treef17b7e1085e4059aed78fb64a4e4da839afd44c6
parentd1f1380591e6abe7101228346158e15248cc4cb5
x86/dmi_scan: only honor end-of-table for 64-bit tables

A 32-bit entry point to a DMI table says how many structures the table
contains. The SMBIOS specification explicitly says that end-of-table
markers should be ignored if they are not actually at the end of the
DMI table. So only honor the end-of-table marker for tables accessed
through 64-bit entry points, as they do not specify a structure count.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
[Linux commit 17cd5bd5391e6e7b363d66335e1bc6760ae969b9]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/dmi_scan.c